/**
 * @desc
 *
 * @使用场景
 *
 * @author  杨晓东[of1081]
 * @company qianmi.com
 * @Date    16/11/17
 **/
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
/**
 * 根据模板索引文件生成相应的JS
 * @param templateIndexArray
 * @return {string}
 */
function transfertpIndex2JsFile(templateIndexArray) {
    return `;(function(){
        var tplIndex = ${JSON.stringify(templateIndexArray)};
        if(window.xDllContext && window.xDllContext.msg){
          window.xDllContext.msg.emit('XSite_template_index_loaded',tplIndex);
        } else if(window.__XSite_template_index_loaded){
          window.__XSite_template_index_loaded(tplIndex);
        } else {
          console.warn('未设置入口接收模板索引!!!');
        }
    })();
    `;
}
exports.transfertpIndex2JsFile = transfertpIndex2JsFile;
